package com.huage.courseplatform.application.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="商户申请参数",description="商户申请参数")
public class BusinessApplyPARAM implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "申请用户Id",required = true)
    private String userId;

    @NotEmpty(message = "商户名不能为空")
    @ApiModelProperty(value = "商户名",required = true)
    private String businessName;

    @Email(message = "请输入正确的邮箱")
    @ApiModelProperty(value = "邮箱")
    private String businessEmail;

    @ApiModelProperty(value = "联系电话")
    private String businessPhone;

    @ApiModelProperty(value = "商户头像ID")
    private String logoImg;

    @NotEmpty(message = "详细地址不能为空")
    @ApiModelProperty(value = "详细地址",required = true)
    private String address;

    @ApiModelProperty(value = "经度-180~180")
    private Integer longitude;

    @ApiModelProperty(value = "纬度-90~90")
    private Integer latitude;

    @NotEmpty(message = "商户介绍不能为空")
    @ApiModelProperty(value = "商户介绍",required = true)
    private String description;


}
